using System;
using System.Collections.Generic;
using System.Text;
using Mpi.Common.Collections;

namespace Xeml.Document
{
    public class SuperSampleCollection : ObservableIdCollectionBase<SuperSample, int>
    {
        public StoryBase Story { get; private set; }

        public SuperSampleCollection()
        {
        }

        public SuperSampleCollection(StoryBase owner)
        {
            Story = owner;
        }

        protected override int GetIdentifiere(SuperSample item)
        {
            return item.Id;
        }

        protected override void SetOwner(SuperSample item)
        {
            item.Collection = this;
        }

        protected override void RemoveOwner(SuperSample item)
        {
            item.Collection = null;
        }
    }
}
